package com.wwj.nativecode;

public class NxServiceApiDemo {
	
	static {
		//System.load("G:\\NJTest\\VS2010_64\\x64\\Debug\\NJModelServiceJava.dll");
		System.loadLibrary("NJModelServiceJava");
	}
	
	public native int NJS_CreateServerHandle(String ip, int port);
	
	public native int NJS_CreateServiceAccessHandle(int server);
	
	public native int NJS_CreateModelServerList(int access);
	
	public native int NJS_CleanModelServiceListHandle(int list);
	
	public native int NJS_GetModelServiceListCount(int list);
	
	public native int NJS_GetModelServiceByIndex(int list, int index);
	
	public native String NJS_GetModelServiceOID(int ms);
	
	public native String NJS_GetModelServiceName(int ms);
	
	public native String NJS_GetModelServiceType(int ms);
	
	public native String NJS_testchar(String content);
	
//	public static void main(String[] args){
//		String content = "hello";
//		String result;
//		
//		NxServiceApiDemo test = new NxServiceApiDemo();
//		
//		result = test.NJS_testchar(content);
//		
//		System.out.println("The test content:" + result);
//		
//		
//		
//	}
	
}
